package com.enwayouli.mapper;

import com.enwayouli.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper {
    List<Comment> getCommonByMid(int mid);
    int addComment(@Param("uid") int uid, @Param("content") String content, @Param("mid") int mid);
    int getNum();
}
